<h4><%= header %></h4>
<form id="EditView" name="EditView" method="POST" onsubmit="return false;">
<input type="submit" style="display: none;" data-role="none">
<ul data-role="listview" data-theme="a">
<li data-role="list-divider"><%= helper.translate('LBL_CONTACT_INFORMATION', 'Contacts') %></li>
<li>
<label for="first_name"><%= helper.translate('LBL_FIRST_NAME', 'Contacts') %></label>
<input type='text' name='first_name' 
id='first_name'
maxlength='100' 
value="<%= model.get('first_name') %>"          >
</li>
<li>
<label for="last_name"><%= helper.translate('LBL_LAST_NAME', 'Contacts') %></label>
<input type='text' name='last_name' 
id='last_name'
maxlength='100' 
value="<%= model.get('last_name') %>"      required      >
</li>
<li>
<label for="account_name"><%= helper.translate('LBL_ACCOUNT_NAME', 'Contacts') %></label>
<input  type="text" value="<%= model.get('account_name') %>" name="account_name" id="account_name" autocomplete="off">
<input type="hidden" value="<%= model.get('account_id') %>" name="account_id" id="account_id">
<div>
<ul id="account_name-suggestions" data-role="listview" data-inset="true"></ul>
</div>
<script type="text/javascript">
	$("#account_name").autocomplete('account_id', 'Accounts');
</script>
</li>
<li>
<label for="phone_work"><%= helper.translate('LBL_OFFICE_PHONE', 'Contacts') %></label>
<input type='text' name='phone_work' 
id='phone_work'
maxlength='100' 
value="<%= model.get('phone_work') %>"          >
</li>
<li>
<label for="email1"><%= helper.translate('LBL_EMAIL_ADDRESS', 'Contacts') %></label>
<input type='email' name='email1' 
id='email1'
value="<%= model.get('email1') %>"          >
</li>
<li>
<label for="title"><%= helper.translate('LBL_TITLE', 'Contacts') %></label>
<input type='text' name='title' 
id='title'
maxlength='100' 
value="<%= model.get('title') %>"          >
</li>
<li>
<label for="primary_address_street"><%= helper.translate('LBL_PRIMARY_ADDRESS', 'Contacts') %></label>
<fieldset>
<label><%= App.translate('LBL_STREET') %></label>
<textarea name="primary_address_street" value="" ><%= model.get('primary_address_street') %></textarea>
<label><%= App.translate('LBL_CITY') %></label>
<input name="primary_address_city" type="text" value="<%= model.get('primary_address_city') %>" >
<label><%= App.translate('LBL_STATE') %></label>
<input name="primary_address_state" type="text" value="<%= model.get('primary_address_state') %>" >
<label><%= App.translate('LBL_POSTAL_CODE') %></label>
<input name="primary_address_postalcode" type="text" value="<%= model.get('primary_address_postalcode') %>" >
<label><%= App.translate('LBL_COUNTRY') %></label>
<input name="primary_address_country" type="text" value="<%= model.get('primary_address_country') %>" >
</fieldset>
</li>
<li data-role="list-divider"><%= helper.translate('LBL_PANEL_ADVANCED', 'Contacts') %></li>
<li>
<label for="assigned_user_name"><%= helper.translate('LBL_ASSIGNED_TO_NAME', 'Contacts') %></label>
<input  type="text" value="<%= model.get('assigned_user_name') %>" name="assigned_user_name" id="assigned_user_name" autocomplete="off">
<input type="hidden" value="<%= model.get('assigned_user_id') %>" name="assigned_user_id" id="assigned_user_id">
<div>
<ul id="assigned_user_name-suggestions" data-role="listview" data-inset="true"></ul>
</div>
<script type="text/javascript">
	$("#assigned_user_name").autocomplete('assigned_user_id', 'Users');
</script>
</li>
</ul>
</form>
